//
//  SYClassesTool.h
//  ChatDemo-UI2.0
//
//  Created by zz on 16/8/17.
//  Copyright © 2016年 zz. All rights reserved.
//  8-17  通知与作业的缓存工具类
//  8-26  增加通知缓存工具类

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    NotificationType_Notification = 0,
    NotificationType_Homework,
} notificationType;

@class homework;
@interface SYClassesTool : NSObject

/**
 *  清楚缓存
 */

+(void)cleanDisk;

//按字典存入单条数据
+(BOOL)saveTeacherNotificationWithDict:(NSDictionary *)dict withType:(NSString *)typeStr;

+(NSMutableArray *)getTeacherNotificationWithType:(NSString *)typestr;


/**
 *  家长身份 将通知全部标记为已读
 *
 *  @param type 通知作业类型，NotificationType_Notification或者0代表通知，NotificationType_Homework或者1代表作业
 */
+ (void)setAllNotificationAndHomeworkIsread:(notificationType)type;

/**家长身份 将选中的通知标记为已读*/
+ (void)setNotificationAndHomeworkAsRead:(NSArray *)selectNotis Notificationtype:(notificationType)type;

/**家长身份 删除选中的通知*/
+ (void)deleteNotificationAndHomework:(NSArray *)selectNotis Notificationtype:(notificationType)type;

//加载更多的数据
+(NSMutableArray *)getMoreDataWithinfoid:(NSInteger)infoid andTypeStr:(NSString *)typeStr;



+(BOOL)saveCacheDataWithNSArr:(NSArray *)cacheDataArr withInfoID:(NSString *)infoID;

+(NSMutableArray *)getCacheDataFromInfoID:(NSString *)infoID;



+(BOOL)saveTeacherHomeWorkWithDict:(NSDictionary *)dict withType:(NSString *)typeStr;
+(NSMutableArray *)getTeacherHomeWorkWithType:(NSString *)type;
+(NSMutableArray *)getMoreHomeworkDataWithinfoid:(NSInteger)infoid andTypeStr:(NSString *)typeStr;





@end
